#include <gtest/gtest.h>

#include <climits>
#include <cstddef>

#include "list/circular_list.h"

class ListTest : public ::testing::Test
{
  protected:
    void SetUp() override
    {
        // 初始化代码 (需要时)
    }
};

TEST_F(ListTest, BasicTest)
{
    const int arr[] = {1, 2, 3, 4, 5};
    ListNode* head = createList(arr, sizeof(arr) / sizeof(int));
    EXPECT_TRUE(head->data == 1 && head->next->data == 2);

    printList(head);
    deleteList(head);
}